Skip to content

Add TOTP two-factor authentication#116

Merged
arjunkomath merged 2 commits into
mainfrom
feat-auth-2fa
Jul 9, 2026
Merged

Add TOTP two-factor authentication#116
arjunkomath merged 2 commits into
mainfrom
feat-auth-2fa

Conversation

@techulus-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Upgrade better-auth and @better-auth/api-key to 1.6.23.
  • Add authenticator-app TOTP two-factor auth with Better Auth server/client plugins.
  • Add /two-factor challenge flow, Security settings UI for enable/verify/disable/regenerate backup codes, and matching Drizzle schema.
  • Harden auth redirect handling and add helper regression tests.

Validation

  • CI=true pnpm test passed: 73 tests.
  • CI=true pnpm exec tsc --noEmit passed.
  • Targeted CI=true pnpm exec biome check ... passed for touched TS/TSX/schema/test files.
  • CI=true pnpm build passed. Local build emitted expected Better Auth env warnings because BETTER_AUTH_URL and BETTER_AUTH_SECRET were not set in this shell.

Notes

  • Scope is authenticator-app TOTP only; no email or SMS OTP.
  • No live database push was run from this local environment.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 76b442b.

@arjunkomath arjunkomath marked this pull request as ready for review July 9, 2026 07:30
@arjunkomath arjunkomath merged commit 91dfe6a into main Jul 9, 2026
9 checks passed
@arjunkomath arjunkomath deleted the feat-auth-2fa branch July 9, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants